package com.yanqu.road.entity.activity.guagifts;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_gua_noble_relation", desc = "孤寡贵族榜关系数据")
public class UserGuaNobleRelationData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(select = true, update = true, desc = "对方用户id")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "收对方数,人气值")
    private int getCount;
    @FieldTypeAnnotation(desc = "送对方数,人气值")
    private int sendCount;
    @FieldTypeAnnotation(desc = "收对方时间")
    private long getTime;
    @FieldTypeAnnotation(desc = "送对方时间")
    private long sendTime;

    public UserGuaNobleRelationData(int activityId, long userId, long targetUserId) {
        this.activityId = activityId;
        this.userId = userId;
        this.targetUserId = targetUserId;
        setInsertOption();
    }

    public UserGuaNobleRelationData() {
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getTargetUserId() {
        return targetUserId;
    }
    public void setTargetUserId(long targetUserId) {
        if (this.targetUserId != targetUserId) {
            this.targetUserId = targetUserId;
            setOp(DataStatus.Update);
        }
    }

    public int getGetCount() {
        return getCount;
    }
    public void setGetCount(int getCount) {
        if (this.getCount != getCount) {
            this.getCount = getCount;
            setOp(DataStatus.Update);
        }
    }

    public int getSendCount() {
        return sendCount;
    }
    public void setSendCount(int sendCount) {
        if (this.sendCount != sendCount) {
            this.sendCount = sendCount;
            setOp(DataStatus.Update);
        }
    }

    public long getGetTime() {
        return getTime;
    }
    public void setGetTime(long getTime) {
        if (this.getTime != getTime) {
            this.getTime = getTime;
            setOp(DataStatus.Update);
        }
    }

    public long getSendTime() {
        return sendTime;
    }
    public void setSendTime(long sendTime) {
        if (this.sendTime != sendTime) {
            this.sendTime = sendTime;
            setOp(DataStatus.Update);
        }
    }
}
